package com.mingqijia.gassafety.db.entity.redis;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 实时状态信息
 * @author guoliang.lao
 */
@Data
public class LatestLog {
    @ApiModelProperty("设备号")
    private String iMEI;

    @ApiModelProperty("设备状态 0:离线 1:正常 2:低报 3:高报 4:故障 5:过期")
    private Integer equipmentStatus;

    @ApiModelProperty("设备状态信息")
    private String equipmentStatusInfo;

    @ApiModelProperty("气体浓度")
    private String xlel;

    @ApiModelProperty("信号情况")
    private Integer signal;

    @ApiModelProperty("信号情况说明")
    private String signalStr;

    @ApiModelProperty("最近一次上报时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date latestTime;

    @ApiModelProperty("电池电压")
    private Double btV;

    @ApiModelProperty("主电电量百分比")
    private Integer mainBatteryValue;

    @ApiModelProperty("气体浓度 整型")
    private Integer concentration;


    @ApiModelProperty("接收器状态 0-离线,1-正常")
    private Integer receiverStatus;
    @ApiModelProperty("阀门状态 0-开 1-关 ,2-故障")
    private Integer valveStatus;

    private Integer batteryStatus;
    private Integer brokenStatus;
    private String brokenStatusInfo;
}
